Instance 0

Centrality↓:3.9815666016484963  Popularity↓:0.0  specifity↑:1.103638323514327
            if(tmp != null) {
                tmp.interrupt();
                if(tmp.isAlive()) {
                    try {tmp.join(500);catch(InterruptedException e) {}
                }
            }

Path:D:\JavaApiSearchResult\Thread.join\Class650.java


Instance 1

Centrality↓:3.9721321993076115  Popularity↓:0.0  specifity↑:0.4060058497098381
        if (thread != null) {
            while (thread.isAlive()) {
                try {
                    thread.join(WAIT_TO_DIE);
                catch (InterruptedException e) {
                }
            }
        }

Path:D:\JavaApiSearchResult\Thread.join\Class470.java


Instance 2

Centrality↓:3.9721321993076115  Popularity↓:0.0  specifity↑:0.4060058497098381
        if (thread != null) {
            while (thread.isAlive()) {
                try {
                    thread.join(WAIT_TO_DIE);
                catch (InterruptedException e) {
                }
            }
        }

Path:D:\JavaApiSearchResult\Thread.join\Class300.java


Instance 3

Centrality↓:3.961470520114009  Popularity↓:0.0  specifity↑:2.207276647028654
        Iterator<Thread> iterator = threads.iterator();
        while (iterator.hasNext()) {
            Thread thread =  iterator.next();
            try {
                thread.join(RECONNECT_DELAY + 500);
            catch (InterruptedException ignored) { }
            if (!thread.isAlive()) {
                iterator.remove();
            }
        }

Path:D:\JavaApiSearchResult\Thread.join\Class40.java


Instance 4

Centrality↓:3.9383151363347118  Popularity↓:0.0  specifity↑:2.9430355293715387
        thread.join(millis);
        if (thread.isAlive()) {
            LOG.error("Thread " + thread.getName() " : "
                    + Arrays.toString(thread.getStackTrace()));
            Assert.assertFalse("thread " + thread.getName()
                    " still alive after join"true);
        }

Path:D:\JavaApiSearchResult\Thread.join\Class460.java